// 图表通用样式
.chart-container {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  
  &:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #409eff, #53a8ff);
  }
  
  .chart {
    width: 100%;
    height: 100%;
    min-height: 300px;
  }
  
  .chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    
    &::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, #409eff, #53a8ff);
    }
  }
  
  .no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #909399;
    
    .icon {
      font-size: 48px;
      margin-bottom: 12px;
      opacity: 0.5;
    }
    
    .text {
      font-size: 16px;
      font-weight: 500;
    }
    
    .retry-btn {
      margin-top: 16px;
      padding: 8px 20px;
      border-radius: 20px;
      background: linear-gradient(135deg, #409eff, #53a8ff);
      color: white;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
      }
    }
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .chart-container {
    padding: 12px;
    
    .chart-title {
      font-size: 16px;
      margin-bottom: 12px;
    }
  }
}

@media (max-width: 768px) {
  .chart-container {
    padding: 10px;
    
    .chart {
      min-height: 250px;
    }
    
    .chart-title {
      font-size: 14px;
      margin-bottom: 10px;
    }
    
    .no-data {
      .icon {
        font-size: 36px;
      }
      
      .text {
        font-size: 14px;
      }
      
      .retry-btn {
        padding: 6px 16px;
        font-size: 12px;
      }
    }
  }
}